<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
	<title>Activities</title>
	<link rel="stylesheet" type="text/css" href="css/frame.css" />
	<meta http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT"/>
	<meta http-equiv="Pragma" content="no-cache"/>
	<meta http-equiv="Cache-Control" content="no-cache"/>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
	<meta http-equiv="content-language" content="es"/>
	<script language="javascript" src="js/interlineado.js"></script>
	<script language="javascript" src="activity/activity.js"></script>
</head>
<body onLoad="javascript:alternate('activity');" style="padding-left:4px; padding-bottom:5px;">
	<form id="ActivityForm" method="post">
		<input id="project" name="project" type="hidden" value="${project.projectKey.id}"/>
		<h2>Project Tasks</h2>
		
		<h4>Project</h4>
		
		<table class="master-table">
			<tr>
				<td class="master-table-label">Id:</td>
				<td class="master-table-value">${project.projectKey.id}</td>
			</tr>
			<tr>
				<td class="master-table-label">Name:</td>
				<td class="master-table-value">${project.name}</td>
			</tr>
			<tr>
				<td class="master-table-label">Description:</td>
				<td class="master-table-value">${project.description}</td>
			</tr>
		</table>
		
		<h4>Activities</h4>
				
		<display:table name="projectDetail" id="activity" requestURI="/activity.list.fc" class="grid" pagesize="${pageSize}" >
			<display:column title="Id" headerClass="grid-header" sortable="true">
				<c:out value="${activity.activityKey.id}"/>
			</display:column>
			<display:column title="Name" headerClass="grid-header" sortable="true">
				<c:out value="${activity.name}"/>
			</display:column>
			<display:column title="Description" headerClass="grid-header" sortable="true">
				<c:out value="${activity.description}"/>
			</display:column>
			<display:column title="Action" headerClass="grid-header" style="width:60px;text-align:center;">
				<input type="image" src="img/assign.png" title="Involve people in activity" onclick="detailActivity(${activity.activityKey.id});" style="border-width:0px;" />
				<input type="image" src="img/update.png" title="Update activity" onclick="loadUpdateActivity(${activity.activityKey.id});" style="border-width:0px;" />
				<input type="image" src="img/delete.png" title="Delete activity" onclick="if(!deleteActivity(${activity.activityKey.id}))return false;" style="border-width:0px;" />
			</display:column>
		</display:table>
		
		<br/>
		<br/>

		<a title="New activity" class="link-button" href="javascript:loadCreateActivity();">New</a>

		<a class="link-button" href="project.list.fc">Back</a>
	</form>
</body>
</html>